{extend name='common@layout/base' /}
{block name='breadcrumb'}
<div class="nch-breadcrumb-layout">
    <div class="nch-breadcrumb wrapper"><i class="icon-home"></i>
        <span><a href="/">首页</a></span><span class="arrow">></span>
        <span><a href="{:url('member/index/index')}">我的企业</a></span><span class="arrow">></span>
        <span>收货地址</span>
    </div>
</div>
{/block}
{block name='content'}
<div class="ncm-container">
    {include file='common@layout/member_left' /}
    <div class="right-layout">
    
<div class="wrap">
  <div class="tabmenu">
    <ul class="tab pngFix">
  <li class="active"><a  href="{:url('member/address/index')}">地址列表</a></li></ul>
    <a href="javascript:void(0)" class="new_btn new_red_btn pa" style="top: -2px;right: 1px;" nc_type="dialog" dialog_title="新增地址" dialog_id="my_address_edit"  uri="{:url('member/address/modify')}" dialog_width="550" title="新增地址"><i class="icon-map-marker"></i>新增地址</a>
      </div>
  <div class="alert alert-success">
    <h4>操作提示：</h4>
    <ul>
      <li>最多可保存20个有效地址</li>
    </ul>
  </div>
  <table class="ncm-default-table" >
    <thead>
      <tr>
        <th class="w80">收货人</th>
        <th class="w150">所在地区</th>
        <th class="tl">街道地址</th>
        <th class="w120">电话/手机</th>
        <th class="w150"></th>
        <th class="w110">操作</th>
      </tr>
    </thead>
        <tbody>
        {if(isset($area_list) && is_array($area_list))}
        {volist name="area_list" id="val" key="key"}
            <tr class="bd-line">
        <td>{$val.true_name}</td>
        <td>{$val.area_info}</td>
        <td class="tl">{$val.address}<em class="delivery"></em></td>
        <td>
          <p><i class="icon-mobile-phone"></i>{$val.mob_phone|default=''}{if($val.mob_phone && $val.tel_phone)}/{/if}{$val.tel_phone|default=''}</p></td>
        <td>{if($val.is_default)}默认地址{/if}</td>
        <td class="ncm-table-handle"><span>
                    <a href="javascript:void(0);" class="btn-blue" dialog_id="my_address_edit" dialog_width="550" dialog_title="编辑地址" nc_type="dialog" uri="{:url('member/address/modify?id='.$val.address_id)}"><i class="icon-edit"></i>
          <p>编辑</p>
          </a>
                    </span> <span><a href="javascript:void(0)" class="btn-red" onclick="ajax_get_confirm('您确定要删除吗?', '{:url(\'member/address/del?id=\'.$val.address_id)}');"><i class="icon-trash"></i>
          <p>删除</p>
          </a></span></td>
      </tr>
      {/volist}
      {else /}
	      <tr>
	        <td colspan="20" class="norecord"><div class="warning-option"><i>&nbsp;</i><span>无地址记录</span></div></td>
	      </tr>
      {/if}
                </tbody>
  </table>
</div>
<script type="text/javascript" src="/old/data/resource/js/common_select.js?v1.2" charset="utf-8"></script>
  </div>
    <div class="clear"></div>
</div>
{/block}